package numbers;

public class CollectorUtil {

	public static int[] collectSomeNumbers(int count, INumberGenerator generator) {
		int[] numbers = new int[count];
		
		for (int i = 0; i < count; ++i) {
			numbers[i] = generator.nextNumber();
		}
		
		return numbers;
	}

}
